package com.java.controller;

import com.java.dao.UserDaoImpl;
import com.java.service.Impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2023-11-13
 * Time:20:26
 * Text：
 */
@Controller
public class UserController {
    @Autowired
    private UserServiceImpl userService;
    @Autowired
    private UserDaoImpl userDao;
    public void save(){
        System.out.println("userService.run");
        userService.add();
        System.out.println("userDao.run");
        userDao.save();
    }
}
